package org.nf.test;

import org.nf.dao.StaffsDao;
import org.nf.dao.impl.StaffsDaoImpl;
import org.nf.entity.Staffs;

import java.time.LocalDateTime;

/**
 * @author zhu
 * @date 2024-03-06
 */
public class Update {
    public static void main(String[] args) {
        Staffs staffs = new Staffs();
        staffs.setId(2);
        staffs.setName("zhangsan");
        staffs.setAge(20);
        staffs.setPhone("15478838786");
        staffs.setPos("员工");
        staffs.setAddTime(LocalDateTime.parse("2020-12-01 12:00:00"));
        staffs.setUpdateTime(LocalDateTime.parse("2024-02-15 08:00:00"));
        StaffsDao staffsDao = new StaffsDaoImpl();
        staffsDao.update(staffs);
    }
}
